Conversation
…yerIsAttacker flags previously DefendCollect hid the attacked planet from attackers themselves (their faction filtered out), so they only got a one-shot PwAttackingPlanet and no live defender-count / deadline updates. now the matchmaker broadcasts every attacked planet to every PW user and tags each option with two per-viewer bools so chobby can render attacker/defender/spectator states off a single payload. no names or rosters are added to the payload.
Gate JoinPlanetAttack on having >=1 charge (when PwAttackChargesMax > 0 in DynamicConfig). Attackers spend 1 charge when their squad actually launches (LaunchAllBattles), so merely clicking without forming a squad does not cost anything. Defenders gain 1 charge at battle end (via ProcessBattleResult). Passive recharge: a player who has sat below max for PwAttackChargesRechargeMinutes gains 1 charge; fresh/zero-initialised accounts get their recharge timer set lazily on the first passive pass. PwCharges protocol message (Current, Max, SecondsUntilNextCharge) is pushed to the player on login and after every change. Max=0 disables the system. StartGalaxy seeds every account to the configured maximum.
Planetwars tweaks for next round
add per-player attack charges to planetwars
Removing faction attacker concept from planetwars
… maximum + owner faction in API. fix #3043
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.